package com.vogue.supplymall.admin.business.domain.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import java.io.Serializable;
import java.util.Date;

/**
 * @author zhangliang
 * Create in 2018-07-12
 */
@Entity
@Table(name = "admin_private_platform_app")
public class AdminPrivatePlatformApp extends BaseEntity implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 3584926000910688581L;
    /**
     * 私有平台信息id
     */
    private Long appid;
    /**
     * app类型 1：ios 2：android
     */
    private Integer type;
    /**
     * 在线安装地址
     */
    private String onlineurl;
    /**
     * 下载源文件地址
     */
    private String downloadurl;
    /**
     * 二维码图片地址
     */
    private String qrcodeurl;
    /**
     * 上传时间
     */
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @Column(
            updatable = true,
            columnDefinition = "DATETIME NULL COMMENT'上传时间'"
    )
    private Date uptime;
    /**
     * 版本号
     */
    private String version;
    /**
     * 备注
     */
    private String memo;
    /**
     * 更新者id
     */
    private Long updateuserid;
    /**
     * 更新着
     */
    private String updateuser;
    /**
     * 禁用标志（0否 1是）
     */
    private Boolean disabledflag = false;

    public Long getAppid() {
        return appid;
    }

    public void setAppid(Long appid) {
        this.appid = appid;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getOnlineurl() {
        return onlineurl;
    }

    public void setOnlineurl(String onlineurl) {
        this.onlineurl = onlineurl;
    }

    public String getDownloadurl() {
        return downloadurl;
    }

    public void setDownloadurl(String downloadurl) {
        this.downloadurl = downloadurl;
    }

    public String getQrcodeurl() {
        return qrcodeurl;
    }

    public void setQrcodeurl(String qrcodeurl) {
        this.qrcodeurl = qrcodeurl;
    }

    public Date getUptime() {
        return uptime;
    }

    public void setUptime(Date uptime) {
        this.uptime = uptime;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public Long getUpdateuserid() {
        return updateuserid;
    }

    public void setUpdateuserid(Long updateuserid) {
        this.updateuserid = updateuserid;
    }

    public String getUpdateuser() {
        return updateuser;
    }

    public void setUpdateuser(String updateuser) {
        this.updateuser = updateuser;
    }

    public Boolean getDisabledflag() {
        return disabledflag;
    }

    public void setDisabledflag(Boolean disabledflag) {
        this.disabledflag = disabledflag;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }
}
